package com.yunzhong.appointment.report.service.impl;

import java.util.List;

import com.alibaba.fastjson.JSONObject;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.yunzhong.appointment.entity.Appointmentorder;
import com.yunzhong.appointment.mapper.AppointmentorderMapper;
import com.yunzhong.appointment.mapper.PatientMapper;
import com.yunzhong.appointment.report.service.IPatientAppointmentArea;
@Service
public class PatientAppointmentAreaServiceImpl implements IPatientAppointmentArea {
	
	//患者mapper
	@Autowired
	private PatientMapper patientMapper;
	//预约订单mapper
	@Autowired
	private AppointmentorderMapper appointmentorderMapper;
	







	@Override
	public List <JSONObject> queryArea(String  data) {
		List<JSONObject> list = appointmentorderMapper.queryPatientAddress(data);
		for (JSONObject jsonObject : list) {
			System.out.println(jsonObject);
		}
		return appointmentorderMapper.queryPatientAddress(data);
	}

}
